/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author LYS
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../../../model/baseModel';

const { adminPath } = useGlobSetting();

export interface U8WmsPuArrH extends BasicModel<U8WmsPuArrH> {
  ccode?: string; // 到货单号
  cptcode?: string; // 采购类型
  ddate?: string; // 到货日期
  cvencode?: string; // 供应商编码
  cvenname?: string; // 供应商名称
  cmaker?: string; // 制单人
}

export const u8WmsPuArrHList = (params?: U8WmsPuArrH | any) =>
  defHttp.get<U8WmsPuArrH>({ url: adminPath + '/pu/arr/u8WmsPuArrH/list', params });

export const u8WmsPuArrHListData = (params?: U8WmsPuArrH | any) =>
  defHttp.post<Page<U8WmsPuArrH>>({ url: adminPath + '/pu/arr/u8WmsPuArrH/blueListData', params });

export const u8WmsPuArrHForm = (params?: U8WmsPuArrH | any) =>
  defHttp.get<U8WmsPuArrH>({ url: adminPath + '/pu/arr/u8WmsPuArrH/form', params });

export const u8WmsPuArrHSave = (params?: any, data?: U8WmsPuArrH | any) =>
  defHttp.postJson<U8WmsPuArrH>({ url: adminPath + '/pu/arr/u8WmsPuArrH/save', params, data });

export const u8WmsPuArrHDelete = (params?: U8WmsPuArrH | any) =>
  defHttp.get<U8WmsPuArrH>({ url: adminPath + '/pu/arr/u8WmsPuArrH/delete', params });

export const u8WmsPuArrHThListData = (params?: U8WmsPuArrH | any) =>
  defHttp.post<Page<U8WmsPuArrH>>({
    url: adminPath + '/pu/arr/u8WmsPuArrH/redListData',
    params,
  });
